package com.three.productList.controller;

import com.three.core.entity.ProductOrder;
import com.three.core.vo.R;
import com.three.productList.service.ProductOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：li
 * @date ：Created in 2025/3/18 018 18:48
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/product/order")
public class ProductOrderController {
    @Autowired
    private ProductOrderService productOrderService;

    //生成订单id
    @PostMapping("/insertProductOrder")
    public R<ProductOrder> insertProductOrder(@RequestBody ProductOrder productOrder){
        return productOrderService.insertProductOrder(productOrder);

    }
}
